package com.mly.service.imp;

import com.alibaba.fastjson.JSONObject;
import com.mly.dao.PageDao;
import com.mly.service.PageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import orm.base.Ex.BaseServiceEx;

import java.util.Map;

/**
 * Created by ashin on 2018/4/2.
 */
@Service
public class PageServiceImp extends BaseServiceEx implements PageService {

    @Autowired
    PageDao pageDao;

    @Override
    public void init() {
        super.init(pageDao);
    }

    @Override
    public JSONObject queryTypesByPage(Map map) throws Exception{
        return this.codeData(pageDao.queryTypesByPage(map));
    }
}
